# -*- coding:utf-8 -*-
import jieba
import jieba.posseg as psg
import re
str1="根本就是我用树"
patt="就"
str1=re.sub(patt,"就 ",str1)
seg=psg.lcut(str1)
dict1={}
for i in seg:
	print(i.word+" "+i.flag)
	if i.flag=='n':
		dict1[i.word]=dict1.get(i.word,0)+1
list1=jieba.lcut(str1)
print(list1)
print(dict1)